﻿///***************************************************************
/// 시  스  템 : Updms.Com.Exe
/// 단위시스템 : COM
/// 계      층 : Execute Layer (Not Transaction)
/// 프로그램명 : Com1016m_NT
/// 파  일  명 : Com1016m_NT.cs
/// 설      명 : 탭타이틀
///***************************************************************
/// 수정ID 일자       이름     내용
///---------------------------------------------------------------
/// CH001  2008-09-23 송시명   최초 작성
///***************************************************************
using System.Data;
using System.EnterpriseServices;
using System.Runtime.InteropServices;

using SMFramework.Data;


namespace Updms.Com.Exe
{
	[ComVisible(true)]
	[Transaction(TransactionOption.NotSupported)]
	[JustInTimeActivation(true)]
	public class Com1016m_NT : Base.AppFramework.RuleBase
	{
		public Com1016m_NT()
		{
		}

		#region GetSearchCount
		
		[AutoComplete]
		public int GetSearchCount(DataPack lo_dp)
		{
			_exeTimeLog.Prepare();

			using (Dac.Com_Dac_UPDMS_COM_PGM_TAB_TITLE _dac = new Dac.Com_Dac_UPDMS_COM_PGM_TAB_TITLE())
			{
				return _dac.GetSearchCount(lo_dp);
			}
		}
		
		#endregion

		#region SelectProcess
		
		[AutoComplete]
		public DataSet SelectProcess(DataPack lo_dp)
		{
			_exeTimeLog.Prepare();

			using (Dac.Com_Dac_UPDMS_COM_PGM_TAB_TITLE _dac = new Dac.Com_Dac_UPDMS_COM_PGM_TAB_TITLE())
			{
				return _dac.SelectProcess(lo_dp);
			}
		}
		
		#endregion

		#region GetPgmListForSaveTabTitle
		/// <summary>
		/// 탭타이틀에 등록할 프로그램을 가져온다. 
		/// </summary>
		/// <param name="lo_dp"></param>
		/// <returns></returns>
		[AutoComplete]
		public DataSet GetPgmListForSaveTabTitle(DataPack lo_dp)
		{
			_exeTimeLog.Prepare();

			using (Dac.Com_Dac_UPDMS_COM_PGM_TAB_TITLE _dac = new Dac.Com_Dac_UPDMS_COM_PGM_TAB_TITLE())
			{
				return _dac.GetPgmListForSaveTabTitle(lo_dp);
			}
		}

		#endregion

		#region GetTabTitle
		/// <summary>
		/// 프로그램아이디로 탭타이틀 정보를 가져온다
		/// </summary>
		/// <param name="lo_dp"></param>
		/// <returns></returns>
		[AutoComplete]
		public DataSet GetTabTitle(DataPack lo_dp)
		{
			_exeTimeLog.Prepare();

			using (Dac.Com_Dac_UPDMS_COM_PGM_TAB_TITLE _dac = new Dac.Com_Dac_UPDMS_COM_PGM_TAB_TITLE())
			{
				return _dac.GetTabTitle(lo_dp);
			}
		}
		
		#endregion

		#region GetTabInfo
		/// <summary>
		/// 탭인덱스로 탭타이틀 정보를 가져온다 - 탭타이틀 등록시 바인딩용
		/// </summary>
		/// <param name="lo_dp"></param>
		/// <returns></returns>
		[AutoComplete]
		public DataSet GetTabInfo(DataPack lo_dp)
		{
			_exeTimeLog.Prepare();

			using (Dac.Com_Dac_UPDMS_COM_PGM_TAB_TITLE _dac = new Dac.Com_Dac_UPDMS_COM_PGM_TAB_TITLE())
			{
				return _dac.GetTabInfo(lo_dp);
			}
		}

		#endregion
	}
}
